<?php

namespace frontend\modules\h5\models\traits;

use common\models\orange\OrangeShopRecommend;

trait Activities {

    public function getBanner() {
        $recommend = OrangeShopRecommend::find()
        ->where([
            'status' => OrangeShopRecommend::STATUS_ON
        ])
        ->select(['id', 'title', 'sort', 'cover', 'uri'])
        ->orderBy('sort desc')
        ->all();
        return $recommend;
    }

}
